<?php
/**
 * @description:
 * @author     : Geomen
 * @time       : 2019/1/29 16:56
 */


namespace App\Components;


class Helper
{
    public static function formatUrl($url)
    {
        $url_arr = explode('/',$url);
        if (is_numeric(end($url_arr))){
            array_pop($url_arr);
        }
        return implode('/',$url_arr);
    }
}